#ifndef MOVECOMMAND_H
#define MOVECOMMAND_H

#include <QUndoCommand>

class QGraphicsItem;
class QPointF;

class MoveCommand : public QUndoCommand
{
private:
    QList<QGraphicsItem *> movingItems;
    QList<QPointF> oldPos;
    QList<QPointF> newPos;
    bool isRedo;

public:
    MoveCommand(QList<QGraphicsItem *>, QList<QPointF>);

    void undo();
    void redo();
};

#endif // MOVECOMMAND_H
